package org.jeecg.modules.nc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: NC物料表
 * @Author: qixin-boot
 * @Date:   2021-07-06
 * @Version: V1.0
 */
@Data
@TableName("nc_material")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="nc_material对象", description="NC物料表")
public class NcMaterial implements Serializable {

	/**物料主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "物料主键")
    private String sid;
	/**物料名称*/
	@Excel(name = "物料名称", width = 15)
    @ApiModelProperty(value = "物料名称")
    private String name;
	/**物料编码*/
	@Excel(name = "物料编码", width = 15)
    @ApiModelProperty(value = "物料编码")
    private String code;
	/**规格*/
	@Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String materialspec;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**物料分类PK*/
    @ApiModelProperty(value = "物料分类PK")
    private String pkMarbasclass;
    @Excel(name = "物料分类", width = 15)
    @ApiModelProperty(value = "物料分类名称")
    transient
    private String pkmbcName;
	/**主计量单位PK*/
    @ApiModelProperty(value = "主计量单位PK")
    private String pkMeasdoc;
    @Excel(name = "主计量单位", width = 15)
    @ApiModelProperty(value = "主计量单位")
    transient
    private String pkmdName;
	/**品牌*/
	@Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private String materialtype;
	/**1=未启用，2=已启用，3=已停用*/
	@Excel(name = "启用状态", width = 15,dicCode = "enable_state")
    @Dict(dicCode = "enable_state")
    @ApiModelProperty(value = "1=未启用，2=已启用，3=已停用")
    private Integer enablestate;
	/**0=未删除,1=删除*/
	@Excel(name = "是否删除", width = 15,dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "0=未删除,1=删除")
    private Integer dr;
	/**是否扶贫(Y是，N否)*/
//    @Excel(name = "是否扶贫", width = 15,dicCode = "ysfp")
//    @Dict(dicCode = "ysfp")
    @ApiModelProperty(value = "是否扶贫(Y是，N否)")
    private String def8;
	/**是否定制(Y是，N否)*/
//    @Excel(name = "是否定制", width = 15,dicCode = "ysfp")
//    @Dict(dicCode = "ysfp")
    @ApiModelProperty(value = "是否定制(Y是，N否)")
    private String def9;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "储存方式")
    private String storageMode;

    @ApiModelProperty(value = "运输方式")
    private String transportMode;

    @ApiModelProperty(value = "食用方法")
    private String eatMode;

    @ApiModelProperty(value = "注意事项")
    private String attention;

}
